package com.heima.model.user.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@NoArgsConstructor
@Data
public class LoginVo {

    @JsonProperty("user")
    private UserDTO user;
    @JsonProperty("token")
    private String token;

    @NoArgsConstructor
    @Data
    public static class UserDTO {
        @JsonProperty("id")
        private Integer id;

        @JsonProperty("name")
        private String name;

        @JsonProperty("phone")
        private String phone;
        @JsonProperty("image")
        private String image;
        @JsonProperty("sex")
        private Short sex;
        @JsonProperty("certification")
        private Boolean certification;
        @JsonProperty("identityAuthentication")
        private Boolean identityAuthentication;
        @JsonProperty("status")
        private Boolean status;
        @JsonProperty("flag")
        private Short flag;

    }
}
